https://nhs-pycom.net
# Hello world print("Hello world!")
Hello world!
# Assignment an_object = "some text" print(an_object)
some text
patient_name = "Alice"
patient_age = 30 # Integer values for 'whole number' patient_weight = 70.5 # Float values for fractional values
is_discharged = True
patient_ages = [25, 30, 45, 50, 60]
patient_info = ('Joe Bloggs', 45, 'A+')
patient_record = {'name': 'Methuselah', 'age': 369, 'diagnosis': 'Frailty'}
# Python patient_ages = [25, 30, 45, 50, 60] patient_ages[0]
25
# R patient_ages <- c(25, 30, 45, 50, 60) patient_ages[1]
[1] 25
Any questions, thoughts, errors you got, or things you want demonstrated again?